<meta name="viewport" content="width=device-width, initial-scale=1">

<link rel="apple-touch-icon-precomposed" sizes="144x144" href="../../assets/img/favicon-144.png">
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="../../assets/img/favicon-144.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="../../assets/img/favicon-72.png">
<link rel="apple-touch-icon-precomposed" href="../../assets/img/favicon-32.png">
<link rel="shortcut icon" href="../../assets/img/favicon-32.png">

<link rel="stylesheet" href="../../assets/css/vk.css"/>
<link rel="stylesheet" href="../../assets/css/prism.css"/>


<vk-title>VkPipelineColorBlendAttachmentState | NVK</vk-title>

<vk-centered>

  <vk-navigation>
  <vk-search-title>Search</vk-search-title>
  <vk-search>
    <input type="text" id="search" autocomplete="off" />
    <vk-search-results>
      <ol id="search-list">
        <li id="no-search-results">No Results</li>
      </ol>
    </vk-search-results>
  </vk-search>
  <vk-section-title style="margin-top: 1em;">Categories</vk-section-title>
  <vk-categories></vk-categories>
</vk-navigation>


  <vk-struct>

    <vk-name>VkPipelineColorBlendAttachmentState</vk-name>

    <vk-description>Structure specifying a pipeline color blend attachment state</vk-description>

    <vk-section-title>Syntax</vk-section-title>
    <vk-syntax>
      <pre><code class="language-js">pipelineColorBlendAttachmentState = new VkPipelineColorBlendAttachmentState();
pipelineColorBlendAttachmentState = new VkPipelineColorBlendAttachmentState(object);</code></pre>
    </vk-syntax>

    <vk-section-title>Stub</vk-section-title>
    
    <vk-property-prototype id="expand-code" class="expand-btn"></vk-property-prototype>

    <vk-stub id="code-no-expand" style="display:none;">
      <pre><code class="language-js">let pipelineColorBlendAttachmentState = new VkPipelineColorBlendAttachmentState();
pipelineColorBlendAttachmentState.blendEnable = ;
pipelineColorBlendAttachmentState.srcColorBlendFactor = ;
pipelineColorBlendAttachmentState.dstColorBlendFactor = ;
pipelineColorBlendAttachmentState.colorBlendOp = ;
pipelineColorBlendAttachmentState.srcAlphaBlendFactor = ;
pipelineColorBlendAttachmentState.dstAlphaBlendFactor = ;
pipelineColorBlendAttachmentState.alphaBlendOp = ;
pipelineColorBlendAttachmentState.colorWriteMask = ;
</code></pre>
    </vk-stub>

    <vk-stub id="code-expanded" style="display:none;">
      <pre><code class="language-js">let pipelineColorBlendAttachmentState = new VkPipelineColorBlendAttachmentState();
pipelineColorBlendAttachmentState.blendEnable = ;
pipelineColorBlendAttachmentState.srcColorBlendFactor = ;
pipelineColorBlendAttachmentState.dstColorBlendFactor = ;
pipelineColorBlendAttachmentState.colorBlendOp = ;
pipelineColorBlendAttachmentState.srcAlphaBlendFactor = ;
pipelineColorBlendAttachmentState.dstAlphaBlendFactor = ;
pipelineColorBlendAttachmentState.alphaBlendOp = ;
pipelineColorBlendAttachmentState.colorWriteMask = ;
</code></pre>
    </vk-stub><vk-section-title>Parameters</vk-section-title>

    <vk-properties>
      <vk-property-entry>
        <vk-property-prototype class="no-float">object</vk-property-prototype>
        <vk-property-description>When instantiated with an object, members can be filled directly.</vk-property-description>
      </vk-property-entry>
    </vk-properties><vk-section-title>Properties</vk-section-title>

    <vk-properties>
      <vk-property-entry>
        <vk-property-prototype>VkPipelineColorBlendAttachmentState.prototype.<vk-prototype-name>blendEnable</vk-prototype-name></vk-property-prototype>
        <vk-property-type type="boolean">Boolean</vk-property-type>
        <vk-property-description> controls whether blending is enabled for the corresponding color attachment. If blending is not enabled, the source fragment's color for that attachment is passed through unmodified.</vk-property-description>
      </vk-property-entry>
      <vk-property-entry>
        <vk-property-prototype>VkPipelineColorBlendAttachmentState.prototype.<vk-prototype-name>srcColorBlendFactor</vk-prototype-name></vk-property-prototype>
        <vk-property-type type="number"><a href="../enums/VkBlendFactor.html">VkBlendFactor</a></vk-property-type>
        <vk-property-description> selects which blend factor is used to determine the source factors [eq]#(S~r~,S~g~,S~b~)#.</vk-property-description>
      </vk-property-entry>
      <vk-property-entry>
        <vk-property-prototype>VkPipelineColorBlendAttachmentState.prototype.<vk-prototype-name>dstColorBlendFactor</vk-prototype-name></vk-property-prototype>
        <vk-property-type type="number"><a href="../enums/VkBlendFactor.html">VkBlendFactor</a></vk-property-type>
        <vk-property-description> selects which blend factor is used to determine the destination factors [eq]#(D~r~,D~g~,D~b~)#.</vk-property-description>
      </vk-property-entry>
      <vk-property-entry>
        <vk-property-prototype>VkPipelineColorBlendAttachmentState.prototype.<vk-prototype-name>colorBlendOp</vk-prototype-name></vk-property-prototype>
        <vk-property-type type="number"><a href="../enums/VkBlendOp.html">VkBlendOp</a></vk-property-type>
        <vk-property-description> selects which blend operation is used to calculate the RGB values to write to the color attachment.</vk-property-description>
      </vk-property-entry>
      <vk-property-entry>
        <vk-property-prototype>VkPipelineColorBlendAttachmentState.prototype.<vk-prototype-name>srcAlphaBlendFactor</vk-prototype-name></vk-property-prototype>
        <vk-property-type type="number"><a href="../enums/VkBlendFactor.html">VkBlendFactor</a></vk-property-type>
        <vk-property-description> selects which blend factor is used to determine the source factor [eq]#S~a~#.</vk-property-description>
      </vk-property-entry>
      <vk-property-entry>
        <vk-property-prototype>VkPipelineColorBlendAttachmentState.prototype.<vk-prototype-name>dstAlphaBlendFactor</vk-prototype-name></vk-property-prototype>
        <vk-property-type type="number"><a href="../enums/VkBlendFactor.html">VkBlendFactor</a></vk-property-type>
        <vk-property-description> selects which blend factor is used to determine the destination factor [eq]#D~a~#.</vk-property-description>
      </vk-property-entry>
      <vk-property-entry>
        <vk-property-prototype>VkPipelineColorBlendAttachmentState.prototype.<vk-prototype-name>alphaBlendOp</vk-prototype-name></vk-property-prototype>
        <vk-property-type type="number"><a href="../enums/VkBlendOp.html">VkBlendOp</a></vk-property-type>
        <vk-property-description> selects which blend operation is use to calculate the alpha values to write to the color attachment.</vk-property-description>
      </vk-property-entry>
      <vk-property-entry>
        <vk-property-prototype>VkPipelineColorBlendAttachmentState.prototype.<vk-prototype-name>colorWriteMask</vk-prototype-name></vk-property-prototype>
        <vk-property-type type="number"><a href="../enums/VkColorComponentFlagBits.html">VkColorComponentFlagBits</a></vk-property-type>
        <vk-property-description> is a bitmask of <b>VkColorComponentFlagBits</b> specifying which of the R, G, B, and/or A components are enabled for writing, as described for the <<framebuffer-color-write-mask,Color Write Mask>>.</vk-property-description>
      </vk-property-entry>
      
    </vk-properties>

    <vk-section-title>Default Properties</vk-section-title>

    <vk-properties>
      <vk-property-entry>
        <vk-property-prototype>VkPipelineColorBlendAttachmentState.prototype.<vk-prototype-name>memoryBuffer</vk-prototype-name></vk-property-prototype>
        <vk-property-type type="arraybuffer"><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer">ArrayBuffer</a></vk-property-type>
        <vk-property-description>Native memory reference of the structure.</vk-property-description>
      </vk-property-entry>
      <vk-property-entry>
        <vk-property-prototype>VkPipelineColorBlendAttachmentState.<vk-prototype-name>memoryLayout</vk-prototype-name></vk-property-prototype>
        <vk-property-type type="object">Object</vk-property-type>
        <vk-property-description>Object describing this structure's memory layout.</vk-property-description>
      </vk-property-entry>
      <vk-property-entry>
        <vk-property-prototype>VkPipelineColorBlendAttachmentState.<vk-prototype-name>byteLength</vk-prototype-name></vk-property-prototype>
        <vk-property-type type="number">Number</vk-property-type>
        <vk-property-description>Total native byte length of this structure.</vk-property-description>
      </vk-property-entry>
    </vk-properties>

  </vk-struct>

</vk-centered>

<script>
const IS_ROOT = false;
</script>

<script type="text/javascript" src="../../assets/js/prism.min.js"></script>
<script type="text/javascript" src="../../assets/js/index.js"></script>
